from typing import Optional, List
from pydantic import BaseModel
from datetime import datetime

class Event(BaseModel):
    e_id: int
    title: str
    description: Optional[str] = None
    created_at: datetime = datetime.now()
    updated_at: datetime = datetime.now()

class Comment(BaseModel):
    c_id: int
    e_id: int
    content: str
    created_at: datetime = datetime.now()
    user_id: Optional[str] = None

class Article(BaseModel):
    a_id: int
    e_id: int
    title: str
    content: str
    source: Optional[str] = None
    created_at: datetime = datetime.now()
    updated_at: datetime = datetime.now() 